package org.example.service;

import org.example.domain.entity.Product;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ProductService {
    List<Product> getProducts();
    Map<String,Object> getByPage(Integer page, Integer limit);
    Boolean updateProduct(Product product);
    Boolean deleteProduct(Integer productId);
    Boolean insertProduct(Product product);
    List<Product> getProductsById(Integer productId);
    Map<String,Object> getProductsByName(String productName,Integer page, Integer limit);
    Map<String,Object> getProductsByCreateTime(Date[] createTime, Integer page, Integer limit);
    Map<String,Object> getProductsByUpdateTime(Date[] updateTime,Integer page, Integer limit);

}
